package com.wyt.source;

import com.wyt.engine.KylinEngine;
import org.apache.kylin.common.KylinConfig;
import org.apache.kylin.metadata.model.IBuildable;
import org.apache.kylin.metadata.model.TableDesc;
import org.apache.kylin.source.*;
import org.apache.kylin.source.hive.HiveSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;

/**
 * @ClassName KylinSource
 * @Description: TODO
 * @Author wangyongtao
 * @Date 2021/8/22 19:44
 * @Version 1.0
 **/
public class KylinSource extends HiveSource {
    private static Logger logger = LoggerFactory.getLogger(KylinSource.class);

    public KylinSource(KylinConfig config) {
        super(config);
    }

    @Override
    public <I> I adaptToBuildEngine(Class<I> engineInterface) {
        logger.info("wyt01kylinplus: this is KylinSource!");
        return super.adaptToBuildEngine(engineInterface);
    }
}